#流程控制
for i in 'Hello':
    print(i, end=",")

for i in range(100,1000):
    print(i, end=",")
    #*
    #**
    #***
    #****
    #*****
    for i in range(1,5+1):
        for j in range(1,i+1):
            print("*", end="")
        print()

        #     *
        #    ***
        #   *****
        #  *******
        # *********
    for i in range(1, 5 + 1):
        for j in range(5, i,-1):
            print(" ", end="")
        for j in range(1,2*i,):
            print("*", end="")
        print()

num = int(input("请输入数字"))

for i in range(1,num+1,2):
    print(("*"*i).center(num+1))
for i in range(num-2,0,-2):
    print(("*"*i).center(num+1))

#num=int(input("请输入数字"))
#if (0<num<100):
#     print("数字",num,"大于0")
#     print()
#     print()
#else:
#print("数字",num,"小于等于0")